package com.example.testapplication;

import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.testapplication.Hilt.xueJetpackHlit;
import com.example.testapplication.Paging.xueJetpackPiging;
import com.example.testapplication.Rxjava.Rxjava_img;
import com.example.testapplication.adapter.LaunchSimpleAdapter;
import com.example.testapplication.adapter.RecyclerCombineAdapter;
import com.example.testapplication.adapter.RecyclerStaggeredAdapter;
import com.example.testapplication.widget.BannerPager;

// 第一步创建activity
public class TestActivity extends AppCompatActivity implements View.OnClickListener {
    @Override
    // 快捷 onCreate 方法
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // activity 与layout进行了关联
        setContentView(R.layout.activity_test);
        // 通过findViewById 将layout中的控件找出来，并转化成view
        TextView textView = findViewById(R.id.textView);
        // 找到button 这个view
        Button button = findViewById(R.id.button);
        // 为testView动态设置文本
        //textView.setText(getString(R.string.app_name));//
        Button button1 = findViewById(R.id.Ebutton);
        // 消消乐登录按钮
        Button button2 = findViewById(R.id.btn_1);

        // 消消乐登录按钮
        Button button3 = findViewById(R.id.btn_2);
        findViewById(R.id.Text).setOnClickListener(this);
        findViewById(R.id.EditText_demo).setOnClickListener(this);
        findViewById(R.id.btn_main_test1).setOnClickListener(this);
        findViewById(R.id.btn_main_test2).setOnClickListener(this);
        findViewById(R.id.btn_main_test3).setOnClickListener(this);
        findViewById(R.id.btn_main_test4).setOnClickListener(this);
        findViewById(R.id.btn_fragment).setOnClickListener(this);
        findViewById(R.id.btn_net).setOnClickListener(this);
        findViewById(R.id.btn_listview).setOnClickListener(this);
        findViewById(R.id.btn_intent).setOnClickListener(this);
        findViewById(R.id.btn_listView).setOnClickListener(this);
        findViewById(R.id.btn_value).setOnClickListener(this);
        findViewById(R.id.an_test1).setOnClickListener(this);
        findViewById(R.id.AlertDemo).setOnClickListener(this);
        findViewById(R.id.Fragment_start).setOnClickListener(this);
        findViewById(R.id.imtao).setOnClickListener(this);
        findViewById(R.id.banner).setOnClickListener(this);
        findViewById(R.id.application).setOnClickListener(this);
        findViewById(R.id.foodView).setOnClickListener(this);
        findViewById(R.id.getMethod).setOnClickListener(this);
        findViewById(R.id.postMethod).setOnClickListener(this);
        findViewById(R.id.json).setOnClickListener(this);
        findViewById(R.id.gson).setOnClickListener(this);
        findViewById(R.id.handler_1).setOnClickListener(this);
        findViewById(R.id.handler_2).setOnClickListener(this);
        findViewById(R.id.handler_3).setOnClickListener(this);
        findViewById(R.id.handler_4).setOnClickListener(this);
        findViewById(R.id.RecyclerView_1).setOnClickListener(this);
        findViewById(R.id.JSON_json).setOnClickListener(this);
        findViewById(R.id.get_png).setOnClickListener(this);
        findViewById(R.id.shang_handler).setOnClickListener(this);
        findViewById(R.id.mouer).setOnClickListener(this);
        findViewById(R.id.dataStorage).setOnClickListener(this);
        findViewById(R.id.cardView_1).setOnClickListener(this);
        findViewById(R.id.login).setOnClickListener(this);
        findViewById(R.id.login_2).setOnClickListener(this);
        findViewById(R.id.imoc_data).setOnClickListener(this);
        findViewById(R.id.imoc_sq).setOnClickListener(this);
        findViewById(R.id.imoc_exview).setOnClickListener(this);
        findViewById(R.id.imoc_asncTask).setOnClickListener(this);
        findViewById(R.id.asncTask).setOnClickListener(this);
        findViewById(R.id.imoc_broadcastReceiver).setOnClickListener(this);
        findViewById(R.id.shang_okhttp).setOnClickListener(this);
        findViewById(R.id.shang_EventBus).setOnClickListener(this);
        findViewById(R.id.shang_json_native).setOnClickListener(this);
        findViewById(R.id.imoc_Gilde).setOnClickListener(this);
        findViewById(R.id.imoc_webView).setOnClickListener(this);
        findViewById(R.id.shang_h5).setOnClickListener(this);
        findViewById(R.id.imooc_application).setOnClickListener(this);
        findViewById(R.id.shang_Butterknife).setOnClickListener(this);
        findViewById(R.id.shang_animation).setOnClickListener(this);
        findViewById(R.id.shang_customView).setOnClickListener(this);
        findViewById(R.id.shang_window).setOnClickListener(this);
        findViewById(R.id.imoc_animation).setOnClickListener(this);
        findViewById(R.id.imoc_viewanimation).setOnClickListener(this);
        findViewById(R.id.imooc_view).setOnClickListener(this);
        findViewById(R.id.myView_view).setOnClickListener(this);
        findViewById(R.id.shang_ToggleButton).setOnClickListener(this);
        findViewById(R.id.titleBar).setOnClickListener(this);
        findViewById(R.id.shang_Service).setOnClickListener(this);
        findViewById(R.id.shang_event).setOnClickListener(this);
        findViewById(R.id.move_image).setOnClickListener(this);
        findViewById(R.id.event_back).setOnClickListener(this);
        findViewById(R.id.service_background).setOnClickListener(this);
        findViewById(R.id.service_random).setOnClickListener(this);
        findViewById(R.id.yi_asynctask).setOnClickListener(this);
        findViewById(R.id.yi_asynctask2).setOnClickListener(this);
        findViewById(R.id.RecyclerView_2).setOnClickListener(this);
        findViewById(R.id.xue_okhttp).setOnClickListener(this);
        findViewById(R.id.xue_jetpackLifecycle).setOnClickListener(this);
        findViewById(R.id.xue_jetpackViewModel).setOnClickListener(this);
        findViewById(R.id.xue_jetpackDatabinding).setOnClickListener(this);
        findViewById(R.id.xue_jetpackDemo).setOnClickListener(this);
        findViewById(R.id.xue_jetpackPiging).setOnClickListener(this);
        findViewById(R.id.xue_jetpackHlit).setOnClickListener(this);
        findViewById(R.id.xue_RxjavaI).setOnClickListener(this);
        findViewById(R.id.btn_Intent).setOnClickListener(this);
        findViewById(R.id.btn_onclik).setOnClickListener(this);
        findViewById(R.id.btn_ImgBtn).setOnClickListener(this);
        findViewById(R.id.btn_state).setOnClickListener(this);
        findViewById(R.id.btn_calculator).setOnClickListener(this);
        findViewById(R.id.btn_checkbox).setOnClickListener(this);
        findViewById(R.id.btn_switch).setOnClickListener(this);
        findViewById(R.id.btn_radio).setOnClickListener(this);
        findViewById(R.id.btn_spinner).setOnClickListener(this);
        findViewById(R.id.btn_activity).setOnClickListener(this);
        findViewById(R.id.btn_mortgage).setOnClickListener(this);
        findViewById(R.id.btn_login).setOnClickListener(this);
        findViewById(R.id.btn_DatePicker).setOnClickListener(this);
        findViewById(R.id.btn_TimePicker).setOnClickListener(this);
        findViewById(R.id.btn_BaseAdapter).setOnClickListener(this);
        findViewById(R.id.btn_ListviewTest).setOnClickListener(this);
        findViewById(R.id.btn_ListviewCheck).setOnClickListener(this);
        findViewById(R.id.btn_yiqing).setOnClickListener(this);
        findViewById(R.id.btn_gridDemo).setOnClickListener(this);
        findViewById(R.id.btn_ViewPagerDemo).setOnClickListener(this);
        findViewById(R.id.btn_tabStrip).setOnClickListener(this);
        findViewById(R.id.btn_launch).setOnClickListener(this);
        findViewById(R.id.Fragment_Dynamic).setOnClickListener(this);
        findViewById(R.id.ui_tabButton).setOnClickListener(this);
        findViewById(R.id.ui_ActivityGroup).setOnClickListener(this);
        findViewById(R.id.ui_toolbar).setOnClickListener(this);
        findViewById(R.id.ui_overflowmeun).setOnClickListener(this);
        findViewById(R.id.sharedPrefaereces_wirite).setOnClickListener(this);
        findViewById(R.id.sharedPrefaereces_read).setOnClickListener(this);
        findViewById(R.id.sharedPrefaereces_login).setOnClickListener(this);
        findViewById(R.id.btn_sqlite_create).setOnClickListener(this);
        findViewById(R.id.btn_sqlite_write).setOnClickListener(this);
        findViewById(R.id.btn_sqlite_read).setOnClickListener(this);
        findViewById(R.id.btn_login_sqlite).setOnClickListener(this);
        findViewById(R.id.btn_app_write).setOnClickListener(this);
        findViewById(R.id.btn_app_read).setOnClickListener(this);
        findViewById(R.id.btn_tab_layout).setOnClickListener(this);
        findViewById(R.id.btn_recycler_linear).setOnClickListener(this);
        findViewById(R.id.btn_recycler_grid).setOnClickListener(this);
        findViewById(R.id.btn_recycler_combine).setOnClickListener(this);
        findViewById(R.id.btn_recycler_staggered).setOnClickListener(this);
        findViewById(R.id.btn_recycler_dynamic).setOnClickListener(this);
        findViewById(R.id.btn_coordinator).setOnClickListener(this);
        findViewById(R.id.btn_appbar_recycler).setOnClickListener(this);
        findViewById(R.id.btn_appbar_nested).setOnClickListener(this);
        findViewById(R.id.btn_collapse_pin).setOnClickListener(this);
        findViewById(R.id.btn_collapse_parallax).setOnClickListener(this);
        findViewById(R.id.btn_image_fade).setOnClickListener(this);
        findViewById(R.id.btn_scroll_flag).setOnClickListener(this);
        findViewById(R.id.btn_scroll_alipay).setOnClickListener(this);
        findViewById(R.id.btn_swipe_refresh).setOnClickListener(this);
        findViewById(R.id.btn_swipe_recycler).setOnClickListener(this);
        findViewById(R.id.btn_banner_indicator).setOnClickListener(this);
        findViewById(R.id.btn_banner_pager).setOnClickListener(this);
        findViewById(R.id.btn_banner_top).setOnClickListener(this);
        findViewById(R.id.btn_department_store).setOnClickListener(this);
        // 设置button点击事件 改变文本内容
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                // 跳转到一个NewActivity
                Intent intent = new Intent(TestActivity.this,RelativeLayoutActivity.class);
                startActivity(intent);
            }
        });

        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                // 跳转到一个NewActivity
                Intent intent = new Intent(TestActivity.this,EditTextActivity.class);
                startActivity(intent);
            }
        });
       // 消消乐
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                // 跳转到一个NewActivity
                Intent intent = new Intent(TestActivity.this,LoginActivity.class);
                startActivity(intent);
            }
        });
        // activity案例
        button3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                // 跳转到一个NewActivity
                Intent intent = new Intent(TestActivity.this,ActivityDemmo.class);
                startActivity(intent);
            }
        });
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.Text:
                startActivity(new Intent(this,TextActivity.class));
                break;
            case R.id.EditText_demo:
                startActivity(new Intent(this,EditTextDemoActivity.class));
                break;
            case R.id.btn_main_test1:  // 常用简单UI
                startActivity(new Intent(this,SimpleComponentActivity.class));
                break;
            case R.id.btn_main_test2: // 菜单
                startActivity(new Intent(this,MenuActivity.class));
                break;
            case R.id.btn_main_test3:  // 进度条
                startActivity(new Intent(this,ProgressActivity.class));
                break;
            case R.id.btn_main_test4:  // 提示类
                startActivity(new Intent(this,DialogDemo.class));
                break;
            case R.id.btn_fragment:
                startActivity(new Intent(this,FragmentDemo.class));
                break;
            case R.id.btn_net:
                startActivity(new Intent(this,NetworkActivity.class));
                break;
            case R.id.btn_listview:
                startActivity(new Intent(this,ListViewActivity.class));
                break;
            case R.id.btn_intent:
                startActivity(new Intent(this,IntentActivity.class));
                break;
            case R.id.btn_listView:
                startActivity(new Intent(this,ListViewDemo.class));
                break;
            case R.id.btn_value:
                startActivity(new Intent(this,Activity_value.class));
                break;
            case R.id.an_test1:
                startActivity(new Intent(this,Activity_test1.class));
                break;
            case R.id.AlertDemo:
                startActivity(new Intent(this,Activity_alertdemo.class));
                break;
            case R.id.Fragment_start:
                startActivity(new Intent(this, FragmentStart.class));
                break;
            case R.id.imtao:
                startActivity(new Intent(this, SplashActivity.class));
                break;
            case R.id.banner:
                startActivity(new Intent(this, BannerAcitivity.class));
                break;
            case R.id.application:
                startActivity(new Intent(this, ApplicationActivity.class));
                break;
            case R.id.foodView:
                startActivity(new Intent(this, FoodListActivity.class));
                break;
            case R.id.getMethod:
                startActivity(new Intent(this, GetMethodActivity.class));
                break;
            case R.id.postMethod:
                startActivity(new Intent(this, PostMethodActivity.class));
                break;
            case R.id.json:
                startActivity(new Intent(this, JsonActivity.class));
                break;
            case R.id.gson:
                startActivity(new Intent(this, GsonActivity.class));
                break;
            case R.id.handler_1:
                startActivity(new Intent(this, Handler1Activity.class));
                break;
            case R.id.handler_2:
                startActivity(new Intent(this, Handler2Activity.class));
                break;
            case R.id.handler_3:
                startActivity(new Intent(this, Handler3Activity.class));
                break;
            case R.id.handler_4:
                startActivity(new Intent(this, Handler4Activity.class));
                break;
            case R.id.RecyclerView_1:
                startActivity(new Intent(this, Recycler1Activity.class));
                break;
            case R.id.JSON_json:
                startActivity(new Intent(this, JsonDemoActivity.class));
                break;
            case R.id.get_png:
                startActivity(new Intent(this, GetpngActivity.class));
                break;
            case R.id.shang_handler:
                startActivity(new Intent(this, ShangActivity.class));
                break;
            case R.id.mouer:
                startActivity(new Intent(this, DiglettActivity.class));
                break;
            case R.id.dataStorage:
                startActivity(new Intent(this, StorageActivity.class));
                break;
            case R.id.cardView_1:
                startActivity(new Intent(this, CardViewActivity.class));
                break;
            case R.id.login:
                startActivity(new Intent(this, LoginDemoActivity.class));
                break;
            case R.id.login_2:
                startActivity(new Intent(this, LoginImoActivity.class));
                break;
            case R.id.imoc_data:
                startActivity(new Intent(this, ImoccDataActivity.class));
                break;
            case R.id.imoc_sq:
                startActivity(new Intent(this, SqDataActivity.class));
                break;
            case R.id.imoc_exview:
                startActivity(new Intent(this, ExpandableListViewActivity.class));
                break;
            case R.id.asncTask:
                startActivity(new Intent(this, AsyncTaskTestActivity.class));
                break;
            case R.id.imoc_asncTask:
                startActivity(new Intent(this, AsncTaskActivity.class));
                break;
            case R.id.imoc_broadcastReceiver:
                startActivity(new Intent(this, BroadcastReceiverActivity.class));
                break;
            case R.id.shang_okhttp:
                startActivity(new Intent(this, OkhttpActivity.class));
                break;
            case R.id.shang_EventBus:
                startActivity(new Intent(this, EventBusActivity.class));
                break;
            case R.id.shang_json_native:
                startActivity(new Intent(this, NativeJsonActivity.class));
                break;
            case R.id.imoc_Gilde:
                startActivity(new Intent(this, ImocGildeActivity.class));
                break;
            case R.id.imoc_webView:
                startActivity(new Intent(this, ImocWebViewActivity.class));
                break;
            case R.id.shang_h5:
                startActivity(new Intent(this, Activity_h5.class));
                break;
            case R.id.imooc_application:
                startActivity(new Intent(this, Activity_application.class));
                break;
            case R.id.shang_Butterknife:
                startActivity(new Intent(this, ButterknifeActivity.class));
                break;
            case R.id.shang_animation:
                startActivity(new Intent(this, Activity_animation.class));
                break;
            case R.id.shang_customView:
                startActivity(new Intent(this, CustomView2.class));
                break;
            case R.id.shang_window:
                startActivity(new Intent(this, CustomWindon.class));
                break;
            case R.id.imoc_animation:
                startActivity(new Intent(this, FrameAnimationActivity.class));
                break;
            case R.id.imoc_viewanimation:
                startActivity(new Intent(this, viewanimation.class));
                break;
            case R.id.imooc_view:
                startActivity(new Intent(this, Activity_imocview.class));
                break;
            case R.id.myView_view:
                startActivity(new Intent(this, ActivitymyView.class));
                break;
            case R.id.shang_ToggleButton:
                startActivity(new Intent(this, ActivityToggleButton.class));
                break;
            case R.id.titleBar:
                startActivity(new Intent(this, titleBar.class));
                break;
            case R.id.shang_Service:
                startActivity(new Intent(this, shang_Service.class));
                break;
            case R.id.shang_event:
                startActivity(new Intent(this, activityEvent.class));
                break;
            case R.id.move_image:
                startActivity(new Intent(this, moveImage.class));
                break;
            case R.id.event_back:
                startActivity(new Intent(this, eventBack.class));
                break;
            case R.id.service_background:
                startActivity(new Intent(this, serviceMusic.class));
                break;
            case R.id.service_random:
                startActivity(new Intent(this, BoundService.class));
                break;
            case R.id.yi_asynctask:
                startActivity(new Intent(this, AsynctTask.class));
                break;
            case R.id.RecyclerView_2:
                startActivity(new Intent(this, RecyclerViewItem.class));
                break;
            case R.id.xue_okhttp:
                startActivity(new Intent(this, xueOkHttp.class));
                break;
            case R.id.xue_jetpackLifecycle:
                startActivity(new Intent(this,xueJetpackLifecycle.class));
                break;
            case R.id.xue_jetpackViewModel:
                startActivity(new Intent(this,xueJetpackViewModel.class));
                break;
            case R.id.xue_jetpackDatabinding:
                startActivity(new Intent(this,xueJetpackDatabinding.class));
                break;
            case R.id.xue_jetpackDemo:
                startActivity(new Intent(this,xueJetpackDemo.class));
                break;
            case R.id.xue_jetpackPiging:
                startActivity(new Intent(this, xueJetpackPiging.class));
                break;
            case R.id.xue_jetpackHlit:
                startActivity(new Intent(this, xueJetpackHlit.class));
                break;
            case R.id.xue_RxjavaI:
                startActivity(new Intent(this, Rxjava_img.class));
                break;
            case R.id.btn_Intent:
                startActivity(new Intent(this, activityIntent.class));
                break;
            case R.id.btn_onclik:
                startActivity(new Intent(this, btn.class));
                break;
            case R.id.btn_ImgBtn:
                startActivity(new Intent(this, activieyImageButton.class));
                break;
            case R.id.btn_state:
                startActivity(new Intent(this, activitystate.class));
                break;
            case R.id.btn_calculator:
                startActivity(new Intent(this, CalculatorActivity.class));
                break;
            case R.id.btn_checkbox:
                startActivity(new Intent(this, checkBox.class));
                break;
            case R.id.btn_switch:
                startActivity(new Intent(this, switchDmeo.class));
                break;
            case R.id.btn_radio:
                startActivity(new Intent(this, Radio.class));
                break;
            case R.id.btn_spinner:
                startActivity(new Intent(this, SpinnerDemo.class));
                break;
            case R.id.btn_activity:
                startActivity(new Intent(this, ActRquestAcitivty.class));
                break;
            case R.id.btn_mortgage:
                startActivity(new Intent(this, MortgageActivity.class));
                break;
            case R.id.btn_login:
                startActivity(new Intent(this, LoginMainAcitivity.class));
                break;
            case R.id.btn_DatePicker:
                startActivity(new Intent(this, DataPickerDemo.class));
                break;
            case R.id.btn_TimePicker:
                startActivity(new Intent(this, TimerPickerDemo.class));
                break;
            case R.id.btn_BaseAdapter:
                startActivity(new Intent(this, BaseAdapterActivity.class));
                break;
            case R.id.btn_ListviewTest:
                startActivity(new Intent(this, ListViewTest.class));
                break;
            case R.id.btn_ListviewCheck:
                startActivity(new Intent(this, ListViewCheck.class));
                break;
            case R.id.btn_yiqing:
                startActivity(new Intent(this, yiqing.class));
                break;
            case R.id.btn_gridDemo:
                startActivity(new Intent(this, GridViewActivity.class));
                break;
            case R.id.btn_ViewPagerDemo:
                startActivity(new Intent(this, ViewPagerDemo.class));
                break;
            case R.id.btn_tabStrip:
                startActivity(new Intent(this, PagerTabStripActivity.class));
                break;
            case R.id.btn_launch:
                startActivity(new Intent(this, LaunchSimpleActivity.class));
                break;
            case R.id.Fragment_Dynamic:
                startActivity(new Intent(this, FragmentDynamicActivity.class));
                break;
            case R.id.ui_tabButton:
                startActivity(new Intent(this, TabButtonActivity.class));
                break;
            case R.id.ui_ActivityGroup:
                startActivity(new Intent(this, TabHostActivity.class));
                break;
            case R.id.ui_toolbar:
                startActivity(new Intent(this, ToolbarActivity.class));
                break;
            case R.id.ui_overflowmeun:
                startActivity(new Intent(this, OverflowMenuActivity.class));
                break;
            case R.id.sharedPrefaereces_wirite:
                startActivity(new Intent(this, ShareWriteActivity.class));
                break;
            case R.id.sharedPrefaereces_read:
                startActivity(new Intent(this, ShareReadActivity.class));
                break;
            case R.id.sharedPrefaereces_login:
                startActivity(new Intent(this, LoginShareActivity.class));
                break;
            case R.id.btn_sqlite_create:
                startActivity(new Intent(this, DatabaseActivity.class));
                break;
            case R.id.btn_sqlite_write:
                startActivity(new Intent(this, SQLiteWriteActivity.class));
                break;
            case R.id.btn_sqlite_read:
                startActivity(new Intent(this, SQLiteReadActivity.class));
                break;
            case R.id.btn_login_sqlite:
                startActivity(new Intent(this, LoginSQLiteActivity.class));
                break;
            case R.id.btn_app_write:
                startActivity(new Intent(this, AppWriteActivity.class));
                break;
            case R.id.btn_app_read:
                startActivity(new Intent(this, AppReadActivity.class));
                break;
            case R.id.btn_tab_layout:
                startActivity(new Intent(this, TabLayoutActivity.class));
                break;
            case R.id.btn_recycler_linear:
                startActivity(new Intent(this, RecyclerLinearActivity.class));
                break;
            case R.id.btn_recycler_grid:
                startActivity(new Intent(this, RecyclerGridActivity.class));
                break;
            case R.id.btn_recycler_combine:
                startActivity(new Intent(this, RecyclerCombineActivity.class));
                break;
            case R.id.btn_recycler_staggered:
                startActivity(new Intent(this, RecyclerStaggeredActivityI.class));
                break;
            case R.id.btn_recycler_dynamic:
                startActivity(new Intent(this, RecyclerDynamicActivity.class));
                break;
            case R.id.btn_coordinator:
                startActivity(new Intent(this, CoordinatorActivity.class));
                break;
            case R.id.btn_appbar_recycler:
                startActivity(new Intent(this, AppbarRecyclerActivity.class));
                break;
            case R.id.btn_appbar_nested:
                startActivity(new Intent(this, AppbarNestedActivity.class));
                break;
            case R.id.btn_collapse_pin:
                startActivity(new Intent(this, CollapsePinActivity.class));
                break;
            case R.id.btn_collapse_parallax:
                startActivity(new Intent(this, CollapseParallaxActivity.class));
                break;
            case R.id.btn_image_fade:
                startActivity(new Intent(this, ImageFadeActivity.class));
                break;
            case R.id.btn_scroll_flag:
                startActivity(new Intent(this, ScrollFlagActivity.class));
                break;
            case R.id.btn_scroll_alipay:
                startActivity(new Intent(this, ScrollAlipayActivity.class));
                break;
            case R.id.btn_swipe_refresh:
                startActivity(new Intent(this, SwipeRefreshActivity.class));
                break;
            case R.id.btn_swipe_recycler:
                startActivity(new Intent(this, SwipeRecyclerActivity.class));
                break;
            case R.id.btn_banner_indicator:
                startActivity(new Intent(this, BannerIndicatorActivity.class));
                break;
            case R.id.btn_banner_pager:
                startActivity(new Intent(this, BannerPagerActivity.class));
                break;
            case R.id.btn_banner_top:
                startActivity(new Intent(this, BannerTopActivity.class));
                break;
            case R.id.btn_department_store:
                startActivity(new Intent(this, DepartmentStoreActivity.class));
                break;




        }

    }
}
